﻿
using System;
using System.Drawing;

using MonoTouch.Foundation;
using MonoTouch.UIKit;
using System.Collections.Generic;
using Beauty.Module.Pos;
namespace Beauty
{
	public partial class MenuLeftVCtrl : BaseController
	{  
		List<MenuItem> tableItems = new List<MenuItem>();
		public MenuLeftVCtrl () : base ("MenuLeftVCtrl", null)
		{
		}

		public override void DidReceiveMemoryWarning ()
		{
			// Releases the view if it doesn't have a superview.
			base.DidReceiveMemoryWarning ();
			
			// Release any cached data, images, etc that aren't in use.
		}

		public override void ViewDidLoad ()
		{
			base.ViewDidLoad ();
			NavController.SetNavigationBarHidden (true, false);
			vSearch.Layer.BorderWidth = 1f;
			vSearch.Layer.BorderColor =  UIColorExtensions.FromHexString("#b2b2b2").CGColor;
			vSearch.Layer.CornerRadius = 5f;
			cmdAll.SetBackgroundImage (PosUtility.ImageFromInventory ("all-button_2"), UIControlState.Normal);
			cmdAll.SetBackgroundImage (PosUtility.ImageFromInventory ("all-button_1"), UIControlState.Highlighted);
			tbLeftMenu.Layer.BorderWidth = 1f;
			tbLeftMenu.Layer.BorderColor =  UIColorExtensions.FromHexString("#a7a7a7").CGColor;
			tableItems.Add (new MenuItem ("Products"));
			tableItems.Add (new MenuItem ("Service"));
			tableItems.Add (new MenuItem ("Supporting Service"));
			tableItems.Add (new MenuItem ("Package"));
			tableItems.Add (new MenuItem ("Gift Certificate"));
			tableItems.Add (new MenuItem ("Discount"));	
			tbLeftMenu.Source = new MenuSource (tableItems);
			tbLeftMenu.Layer.CornerRadius = 5f;
			Iv_Product temp = new Iv_Product ();
			//Iv_productAdd temp = new Iv_productAdd ();
		 	vContent.Add (temp);
			//scDemo.ContentSize = new SizeF (300, 300);
			//scDemo.ClipsToBounds = true;
			// Perform any additional setup after loading the view, typically from a nib.
		}
	}
}

